/*** 
 * @Author: 玄绮 shijiahansi@qq.com
 * @Date: 2024-05-27 16:37:26
 * @LastEditors: 玄绮 shijiahansi@qq.com
 * @LastEditTime: 2024-05-28 08:36:31
 * @FilePath: \server\test\test_protobuf\main.cpp
 * @Description: 
 * @
 * @Copyright (c) 2024 by 玄绮, All Rights Reserved. 
 */
#include <data/UserInfo.pb.h>
#include <string>

using namespace proto;

int main(int argc, char const *argv[])
{
    data::Account account;
    std::string a = "sga";
    std::string p = "hansi";

    
    account.set_userid("123");
    account.set_account(a);
    account.set_password(p);

    auto as = account.SerializeAsString();

    std::string bs;
    account.SerializeToString(&bs);

    std::cout << bs << std::endl;
    auto debugs = account.DebugString();
    std::cout <<  debugs << std::endl;
    return 0;
}
